<template>
  <div>
    <div v-for="(item, index) in types" :key="index">
      <div v-if="value===item.value" class="ctext" :style="{background:item.bgColor, color:item.color}">
        {{ item.label }}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'colorTag',
  props: {
    value: {
      required: true,
    },
    types: {
      type: Array,
      default: () => [],
    }
  },
  data() {
    return {
    }
  },
  components: {
  },
  created() {
  },
  mounted() {
  },
  methods: {
  },
}
</script>
<style scoped lang="scss">
.ctext {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 30px;
  border-radius: 15px;
}
</style>
